home *** CD-ROM | disk | FTP | other *** search
/ SGI Developer Toolbox 6.1 / SGI Developer Toolbox 6.1 - Disc 1.iso / toolbox / src / exampleCode / opengl / lmwrap / README < prev   
Text File  |  1996-11-11  |  1KB  |  39 lines

  1.    
  2.                toolbox/src/exampleCode/opengl/lmwrap README
  3.  
  4.  
  5.    LMWRAP
  6.    ------
  7.    
  8.    This module's purpose is to enable porting IrisGL's lmdef() and lmbind()
  9.    calls to OpenGL. 
  10.    
  11.    Directories igl and ogl contain the IrisGL and OpenGL versions of the 
  12.    same (simple lighting) program. Both programs use the same sequence 
  13.    of lmdef() and lmbind() calls. 
  14.    
  15.    For igl, these are native GL calls whereas for ogl, these are defined 
  16.    locally in the wrapper layer.
  17.    
  18.    ogl/lmwrap.h and ogl/lmwrap.c comprises of the wrapper layer for 
  19.    lighting calls.
  20.    
  21.    ogl/lmOGL and igl/lmIGL show how to use this layer for getting
  22.    similar results.
  23.    
  24.    Notes: 
  25.    
  26.    1) The sphere gets clipped intentionally to show two sided lighting.
  27.    
  28.    2) Some advanced lighting features (e.g 2 sided lights, spot lights,
  29.       attentuation ) were not supported on all platforms for IrisGL.  So
  30.       you may not see same results in the 2 sample programs on low end 
  31.       machines.
  32.    
  33.    --
  34.    
  35.    Yusuf Attarwala
  36.    yusuf@sgi.com
  37.    April, 1995
  38.    
  39.